from django.conf.urls import url
from . import views

urlpatterns = [
    
    url(r'^$', views.index, name='index'),

    # 浏览相册首页
    url(r'^pic$', views.pic, name='pic'),

    #  相片的增加、删除、修改

    # 加载添加相册图片信息
    url(r'^pic/add$',views.addpic,name='addpic'),

    # 执行相册图片信息添加
    url(r'^pic/insert$',views.insertpic,name='insertpic'),
    
    # 执行相册图片信息删除
    url(r'^pic/del/(?P<uid>[0-9]+)$',views.delpic,name='delpic'),
    
    # 加载相册图片信息编辑表单
    url(r'^pic/edit/(?P<uid>[0-9]+)$',views.editpic,name='editpic'),
    
    # 执行相册图片信息编辑
    url(r'^pic/update$',views.updatepic,name='updatepic'),
]
